package com.you.raft.common.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 一条日志至少三个信息:日志索引;日志任期(Leader的任期号);执行的指令
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class LogEntry implements Serializable {

    private long index;

    private long term;

    private Command command;


}
